from flask import Flask
from .init_sqlalchemy import init_databases, db, ma
# from .init_login import init_login_manager
# from .init_template_directives import init_template_directives
# from .init_restful import init_restful, init_error_restful, api
# from .init_mail import init_mail, mail as flask_mail
# from .init_upload import init_upload
from .init_migrate import init_migrate
# from .init_session import init_session
# from .init_plugins import register_plugin, broadcast_execute


def init_plugs(app: Flask) -> None:
    # 注册插件
    # register_plugin(app)
    # broadcast_execute(app, 'event_begin')

    # 注册 Flask 功能
    # init_login_manager(app)
    init_databases(app)
    # init_mail(app)
    # init_upload(app)
    init_migrate(app)
    # init_session(app)

    # 系统蓝图相关
    # init_template_directives(app)
    # init_restful(app)
    # init_error_restful(app)
